//
//  AudioAbstractViewController.h
//  TestAispeech
//
//  Created by shaowei on 13-9-8.
//  Copyright (c) 2013年 LianZhan. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ParamsConfig.h"
#import "AudioManager.h"

#import "AiSpeechEngine.h"
#import "AiRecognizerDelegate.h"
#import "AiRecognizerDialog.h"
#import "AIConstant.h"


typedef enum{
    ButtonStateOfRecording = 0,
    ButtonStateOfStop,
}ButtonState;

@interface AudioAbstractViewController : UIViewController<AiRecognizerDelegate>

@property (nonatomic, assign) ButtonState buttonState;
@property (nonatomic,retain) AiRecognizerDialog *recognizer;
@property (nonatomic,retain) ASRParams *paramsOfRecognizer;

@property (retain, nonatomic) IBOutlet UITextView *textViewOfResult;
@property (retain, nonatomic) IBOutlet UIButton *buttonOfRecord;

- (NSString *)getRecognizerStringFromString:(NSString *)subString;

- (IBAction)actionRecord:(id)sender;

@end
